from pydantic import BaseModel

from utils.tool import int32Max


class PageRequest(BaseModel):

    page_index : int = 1
    page_size : int = 20

    def setAllPages(self):
        self.page_index = 1
        self.page_size = int32Max()